<?php echo $this->render('head.phtml');?>
<style>
//div{border: 1px solid black;}
</style>
<div class='container_24 div_content ui-corner-all'>
  <!-- bread crumbs -->
  <div class='grid_18'>
    <div class='left top-title'><?php echo $this->course['title'];?></div>
    <div class='clear'></div>
    <div class='bread_crumbs'>
      <div class='left'>
	<!-- crumbs -->
	<a class='crumb ' href="/category/all">所有分类</a>
	<?php foreach ($this->crumbs as $crumb){ //print_r($crumb->getOptions());?>
	&nbsp;>>&nbsp;
	<a class='crumb ' href="/category/select?cat_id=<?php echo $crumb->get('id');?>">
	  <?php echo $crumb->get("name");?>
	</a>
	<?php } ?>&nbsp;>>&nbsp;
	<a class='' href="/video/play?cont_id=<?php echo $this->course['cont_id'];?>"><?php echo $this->course['title'];?></a>
      </div>
    </div>
  </div>
  <div class="grid_6">
    <?php if ($this->course['promotion']){ ?>
					   <div class="ori-price ui-corner-all left"><?php printf("%.2f", $this->course['ori_price']);?>￥</div>
					   <div class="dis-price ui-corner-all left margin-left-10px"><?php printf("%.2f", $this->course['dis_price']);?>￥</div>
    <?php }else{ ?>
    <div class="real-price ui-corner-all"><?php printf("%.2f", $this->course['ori_price']);?>￥</div>
    <?php } ?>
  </div>
  <div class='clear'></div>
  <div class='grid_24 margin-top-10px'>
    <object width='950' height='550' id='StrobeMediaPlayback' name='StrobeMediaPlayback'
	    type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'>
      <param name='movie'value='/static/swfs/StrobeMediaPlayback.swf'/>
      <param name='quality' value='high'/>
      <param name='allowScriptAccess' value='always'/>
      <param name='bgcolor' value='#000000'/>
      <param name='allowfullscreen'	value='true'/>
      <param name='flashvars' value= '&src=../vod/<?php echo $this->course['path'];?>&autoHideControlBar=false&streamType=recorded&autoPlay=true'/>
      <embed src='/static/swfs/StrobeMediaPlayback.swf'
	     width='950'
	     height='550'
	     id='StrobeMediaPlayback'
	     quality='high'
	     allowScriptAccess='always'
	     bgcolor='#000000'
	     name='StrobeMediaPlayback'
	     allowfullscreen='true'
	     pluginspage='http://www.adobe.com/go/getflashplayer'
	     flashvars="&src=../vod/<?php echo $this->course['path'];?>&autoHideControlBar=false&streamType=recorded&autoPlay=true"
	     type='application/x-shockwave-flash'>
      </embed>
    </object>
  </div>
  <div class='clear'></div>

  <div class='grid_24 margin-top-10px'>
  <div class="grid_16">
    <div class="grid_16 margin-top-10px">
      <!-- <div id='div_cat1'> -->
	<div id='div_head_cat1' class='container_121'>
	  <div class="act_box act" id="id_say_good"><label class="say-good-bad cent">顶</label><label class="gray " id="say_good_num"><?php echo $this->course['say_good'];?></label></div>
	  <div class="act_box act" id="id_say_bad"><label class="say-good-bad">踩</label><label class="gray " id="say_bad_num"><?php echo $this->course['say_bad'];?></label></div>
	  <!-- <div class="act_box act" id="id_add_bookmark"><label class="say-good-bad">收藏</label></div> -->
	  <!-- <div class="act_box act" id="id_say_bad"><span class="15em bold cent">踩</span></div> -->
	  <!-- <div class="act_box act" id="id_add_bookmark"><span class="15em bold cent">收藏</span></div> -->
	  <!-- <div class="act_box act"><span class="15em bold cent">分享</span></div> -->
	  <!-- <div class="act_box act"><span class="15em bold cent">评论</span></div> -->
	</div>
      <!-- </div> -->
      <div class="clear"></div>
      <div class="red big-text" id="say_msg"></div>
      
    </div>
    <div class="clear"></div>
    <!-- 评论 -->
    <div class='grid_16 margin-top-20px'>
      <!-- <div class='title'>评论</div> -->
      <textarea id='text_comment' class='comment '></textarea>
      <div class='grid_1 prefix_13 margin-top-10px'>
	<input type='hidden' id='cont_id' value="<?php echo $this->course['cont_id']?>"/>
	<input id='submit_comment' type='submit' value='提交评论'/>
      </div>
    </div>
    <div class='clear'></div>

    <!-- comment list -->
    <div class='grid_16 comment_list margin-top-20px'>
      <div class='comment_body'>
	<?php foreach($this->paginator as $comment) {?>
	<div class='left user-name border-blue1'><?php echo get_true_value($comment['username'], $comment['email'])?></div>
	<div class='left comment-text border-blue1'><?php echo $comment['comment']?></div>
	<div class='right view-time border-blue1'><?php echo $comment['time']?></div>
	<div class="clear"></div>
	<hr class='margin-10px1'/>
	<div class="clear"></div>
	<?php }?>
	<div class='right align-right'><?php echo $this->paginationControl($this->paginator, 'Sliding', 'courses/pagelist.phtml');?></div>
      </div>

    </div>
  </div>
    
  <div class='grid_7'>
    <div class='box ui-corner-all desc'>
      <div class='tabs-title default-bg ui-corner-all white'>
	老师简介
      </div>
      <div class="box-body">
      <span class="box-desc">用户名：</span><?php echo $this->author["username"] ? $this->author["username"] : $this->author["email"];?><br/>
      <span class="box-desc">姓名：</span><?php echo $this->author["realname"];?><br/>
      <span class="box-desc">毕业院校：</span><?php echo $this->author["college_name"];?><br/>
      <span class="box-desc">学院：</span><?php echo $this->author["school_name"];?><br/>
      <span class="box-desc">介绍：</span><?php echo $this->author["signature"];?>
      </div>
    </div>
    <div class='clear'></div>

    <br/>
    <div class='box ui-corner-all desc'>
      <div class='tabs-title default-bg ui-corner-all white'>
	课程介绍
      </div>
      <div class="box-body">
      <?php echo $this->course['descript'];?>
      </div>
    </div>
    <div class='clear'></div>

  </div>
  <div class='clear'></div>
  </div>

</div>
<?php echo $this->render('foot.phtml');?>
